package com.bsoft.gol.editor.controller;


import hcn.util.BaseResponse;
import com.bsoft.gol.editor.editor.ControlReportEntity;
import com.bsoft.gol.editor.editor.request.*;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import com.bsoft.gol.editor.service.ControlReportService;

import java.util.List;

/**
 * @author ss
 * @date 2020/7/20
 */
@Controller
@RequestMapping(value = "/syncAnswer")
public class SyncAnswerController {

    @Autowired
    private ControlReportService controlReportService;


    @RequestMapping("/list")
    @ResponseBody
    public BaseResponse<List<ControlReportEntity>> queryControlReportList(@RequestBody ControlReportEntityReq req) {
        return controlReportService.queryControlReportList(req);
    }

    @RequestMapping("/confirm")
    @ResponseBody
    public BaseResponse updateControlReportList(@RequestBody List<String> req) {
        return controlReportService.updateControlReportList(req);
    }





}
